<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
 .searchtag {display: inline;}
 .searchtag dd {
    color: #5C5C5C;
    background:#FEF9DE;
    display: inline;
    float: left;
    white-space: nowrap;
    margin-left:10px;
    padding:1px;
}

.searchtag dd span {background: url("../images/sprite.png") no-repeat scroll -126px -30px transparent; 
    cursor: pointer;
    display: inline-block;
    height: 12px;
    overflow: hidden;
    position: relative;
    top: 2px;
    width: 13px;

    }
    
    
.searchtag {
    position: relative;
}
.searchtag dt {
    left: 15px;
    position: absolute;
    top: 10px;
}
#keyword_list_div {}
#keyword_list_div span {color: #5C5C5C; background:#FEF9DE;height:22px;display: inline-block;margin:2px;padding:2px;min-width: 80px;text-align: center;}
.content_main table td {text-align: left;}

</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">广告订单->订单创建</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">广告基本信息</span> -&gt;投放条件-&gt;投放媒体选择-&gt;完成 </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/campaign/su_campaign.shtml" name="form01">
    <input name="id" value="${campaign.adId}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr>
        <td width="15%" style="border-left:none" align="right">广告客户：</td>
        <td width="">
        
        <select name="campaign.userId">
               <option value="">请选择...</option>
               <c:forEach items="${customList}"  var="o">     
                     <option value="${o.id}" <c:if test="${o.id==campaign.userId}">selected="selected"</c:if>>${o.comName}</option>
               </c:forEach>
        </select> 
        
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告名称：</td>
        <td width=""><input name="campaign.adName" type="text" value="${campaign.adName}" class="inputwidth01" id="campaign.adName" maxlength="30" /> 
        <span style="color:#666;">在30个字符以内!</span>
        </td>
      </tr>
      <tr>
      
        <td width="15%" style="border-left:none" align="right">开始日期：</td>
        <td width=""><input name="campaign.beginDate" value="<fmt:formatDate value="${campaign.beginDate}" pattern="yyyy-MM-dd"/>" type="text" class="date_type" id="textfield" readonly="readonly"  onclick="new Calendar().show(this,null,null,'CUR');"/> 结束日期：<input name="campaign.endDate" type="text" readonly="readonly" value="<fmt:formatDate value="${campaign.endDate}" pattern="yyyy-MM-dd"/>" class="date_type" id="order.endDate" onclick="new Calendar().show(this);"/></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告类型：</td>
        <td width="">
        <select name="campaign.adCate">
           <option value="">请选择...</option>
           <app:cons_select code="004" value="${campaign.adCate}"></app:cons_select>
        </select>          
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">广告单价：</td>
        <td width=""><input name="campaign.price" value="${campaign.price}" type="text" size="8" style="width:60px;" class="inputwidth01" id="textfield" onkeypress="util.justNum([46]);" /> 元</td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">计费类型：</td>
        <td width="">
          <input type="radio"  name="campaign.adType"  <c:if test="${campaign.adType!='0'&&campaign.adType!='1'}">checked="checked"</c:if> value="2"/> CPA &nbsp;&nbsp;
          <input type="radio"  name="campaign.adType" value="1"  <c:if test="${campaign.adType=='1'}">checked="checked"</c:if>  /> CPC &nbsp;&nbsp;    
          <input type="radio"  name="campaign.adType"  <c:if test="${campaign.adType=='0'}">checked="checked"</c:if> value="0"/> CPM &nbsp;&nbsp;
        </td>
      </tr>
      

      
      <tr>
        <td width="15%" style="border-left:none" align="right">广告备注：</td>
        <td width=""><input name="campaign.adDesc" value="${campaign.adDesc}" type="text" size="20" style="width:240px;" class="inputwidth01" id="textfield"  maxlength="20" />
        <span style="color:#666">20个字符以内!</span>
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="下一步" onclick="validate.submit();"/></span></div>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
validate.addvalidte(document.form01,{
        rules:{
           "campaign.adName":{checkNull:true},
           "campaign.adCate":{checkNull:true},
           "campaign.beginDate":{checkNull:true},
           "campaign.endDate":{checkNull:true},
           "campaign.userId":{checkNull:true}
           },
	    message:{}
	    });
</script>
